/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}

/* 标题样式 */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    background-color: #2c3e50;
    color: white;
    border-radius: 8px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* 导航样式 */
nav {
    background-color: #34495e;
    border-radius: 8px;
    margin-bottom: 30px;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #2c3e50;
}

/* 搜索栏样式 */
.search-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #ecf0f1;
    border-radius: 8px;
}

.search-section form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-section input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.search-section button {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.search-section button:hover {
    background-color: #2980b9;
}

/* 电影部分样式 */
.movie-section,
.recommendations-section,
.movie-detail-section {
    margin-bottom: 40px;
}

.movie-section h2,
.recommendations-section h2,
.movie-detail-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

/* 电影网格样式 */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* 电影卡片样式 */
.movie-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.movie-card a {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: #333;
}

.movie-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

.movie-info {
    font-size: 14px;
    color: #7f8c8d;
}

.movie-info span {
    display: block;
    margin-bottom: 5px;
}

/* 更多按钮样式 */
.section-footer {
    text-align: center;
    margin-top: 20px;
}

.more-btn,
.back-btn,
.recommend-btn,
.browse-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.more-btn:hover,
.back-btn:hover,
.recommend-btn:hover,
.browse-btn:hover {
    background-color: #2980b9;
}

/* 功能特点样式 */
.features-section {
    margin-bottom: 40px;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 20px;
    background-color: #ecf0f1;
    border-radius: 8px;
    text-align: center;
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* 电影详情样式 */
.movie-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.movie-header h2 {
    border-bottom: none;
    margin-bottom: 10px;
}

.movie-meta {
    font-size: 16px;
    color: #7f8c8d;
}

.movie-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.movie-info p {
    margin-bottom: 15px;
    font-size: 16px;
}

.movie-description {
    line-height: 1.8;
}

.rating-stars {
    font-size: 20px;
    color: #f39c12;
    letter-spacing: 2px;
}

.rating-score {
    font-size: 18px;
    font-weight: bold;
    margin-left: 10px;
    color: #2c3e50;
}

/* 评分部分样式 */
.rating-section {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.rating-section h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.rating-input {
    margin-bottom: 15px;
}

.rating-input label {
    display: inline-block;
    margin-right: 15px;
    cursor: pointer;
}

.rating-input input[type="radio"] {
    margin-right: 5px;
}

.rating-hint {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 10px;
}

/* 操作按钮样式 */
.action-buttons {
    text-align: center;
}

.action-buttons a {
    margin: 0 10px;
}

/* 无结果样式 */
.no-results,
.no-recommendations {
    text-align: center;
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.no-results p,
.no-recommendations p {
    margin-bottom: 15px;
    font-size: 16px;
}

.recommendation-hint {
    text-align: center;
    font-style: italic;
    color: #7f8c8d;
    margin-top: 20px;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    background-color: #2c3e50;
    color: white;
    border-radius: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li a {
        padding: 10px 15px;
    }
    
    .search-section form {
        flex-direction: column;
    }
    
    .search-section input,
    .search-section button {
        width: 100%;
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .movie-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .movie-content {
        grid-template-columns: 1fr;
    }
}